/**
 * 
 */
package com.wm.service;

import java.util.List;

import com.wm.bean.Area;
import com.wm.bean.City;
import com.wm.bean.Scriptorium;
import com.wm.service.web.PageList;
import com.wm.service.web.Pages;

/**
 * @author zhangbaochao
 *
 */
public interface ScriptoriumService {
	
	/**
	 * 保存Scriptorium对象
	 * 
	 * @param scriptorium
	 * 			Scriptorium
	 * @return Scriptorium
	 * 			Scriptorium
	 */
	public Scriptorium saveScriptorium(Scriptorium scriptorium);
	
	/**
	 * 更新Scriptorium对象
	 * 
	 * @param scriptorium
	 * 			Scriptorium
	 * @return Scriptorium
	 * 			Scriptorium
	 */
	public Scriptorium updateScriptorium(Scriptorium scriptorium);
	
	/**
	 * 根据ID删除Scriptorium对象
	 * 
	 * @param id
	 * 			long
	 */
	public void removeScriptoriumById(long id);
	
	/**
	 * 根据ID获取Scriptorium对象
	 * 
	 * @param id
	 * 			long
	 * @return Scriptorium
	 * 			Scriptorium
	 */
	public Scriptorium findScriptoriumById(long id);

	/**
	 * 根据参数获取Scriptorium对象列表
	 * @param scrName
	 * @param cityId
	 * @param areaId
	 * @param isShow
	 * @param orderby
	 * @param ascOrDesc
	 * @param pages
	 * @return
	 */
	public PageList findScriptoriumsByScrNameCityIdAreaIdIsShow(String scrName,long cityId,long areaId,int isShow,String orderby,int ascOrDesc,Pages pages);
	
	/**
	 * 根据参数获取Scriptorium对象列表
	 * @param scrInitials
	 * @param scrAnglic
	 * @param scrPhonetic
	 * @param scrType
	 * @param areaId
	 * @param isShow
	 * @param orderby
	 * @param ascOrDesc
	 * @return
	 */
	public List findScriptoriumsByScrInitialsScrAnglicScrPhoneticScrTypeAreaIdIsShow(String scrInitials,String scrAnglic,String scrPhonetic,int scrType,long areaId,int isShow,String orderby,int ascOrDesc);
	
	/**
	 * 根据参数获取Scriptorium对象列表
	 * @param scrName
	 * @return
	 */
	public List findScriptoriumByScrName(String scrName);
}
